package com.bishe.pojo;

import java.math.BigDecimal;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;

/**
 * (UserBill)表实体类
 *
 * @author makejava
 * @since 2024-02-26 23:57:39
 */
@Data
@ApiModel("用户")
@TableName("user_bill")
@EqualsAndHashCode(callSuper = false)
public class UserBill implements Serializable {

    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty("主键")
    private String id;

    @ApiModelProperty("用户id")
    private String uid;

    @ApiModelProperty("0=支出 1=获得")
    private Integer pm;

    @ApiModelProperty("账单标题")
    private String title;

    @ApiModelProperty("货币种类")
    private String category;

    @ApiModelProperty("明细类型")
    private String type;

    @ApiModelProperty("明细数字")
    private BigDecimal number;

    @ApiModelProperty("剩余(经过此次流水后账户的余额)")
    private BigDecimal balance;

    @ApiModelProperty("备注")
    private String mark;

    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty("创建时间")
    private Date createDate;

    @TableField(fill = FieldFill.UPDATE)
    @ApiModelProperty("修改时间")
    private Date updateDate;

    @TableLogic
    @ApiModelProperty("状态")
    private Integer status;

    @ApiModelProperty("账单创建时间")
    private Date billDate;
}

